﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Quartz;

namespace QuartzJobService1
{
    public class TheJob : IJob
    {
        private readonly ILogger _logger;

        public TheJob(ILogger<TheJob> logger)
        {
            _logger = logger;
        }

        public Task Execute(IJobExecutionContext context)
        {
            _logger.LogInformation($"{nameof(TheJob)}: {DateTime.Now:G}");
            return Task.CompletedTask;
        }
    }
}
